/*
 * Author: Sanjay Giri
 * 
 * 
 *   CHIP8 is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   CHIP8 is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with CHIP8.  If not, see <http://www.gnu.org/licenses/>.
 *
 */


import java.awt.*;
import javax.swing.*;


public class MainView extends JFrame{
	
	
	    
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;



	public MainView(){
		
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setTitle("CHIP 8 Emulator");
        setLocationRelativeTo(null);  
        pack();
	}
	


    //========================================================== main
    public static void main(String[] args) {
        MainView window = new MainView();
        
        
        window.setSize(250, 120);
        window.setPreferredSize(new Dimension(100,100));
        window.requestFocus();
        
       
	  		 
		 
        Emulator t = new Emulator();
        
        window.getContentPane().add(t, BorderLayout.EAST);
        
       
        
        window.setVisible(true);
    }


}
